<?php
/**
 * Created by PhpStorm.
 * User: colin
 * Date: 15-3-29
 * Time: 23:50
 */

namespace common\models\myhtsq;

use common\models\BaseModel;

class ViolatedContractModel extends BaseModel
{
    public $violated_contract_id;
    public $contract_code;
    public $violated_principal;
    public $violated_category_id;
    public $violated_littler_category_id;
    public $violated_content;
    public $approver;
    public $approve_comment;
    public $alternative_solution;
    public $created_on;
    public $created_by;
    public $modified_on;
    public $modified_by;
    
    public $principal_name;
    public $approver_name;
    public $category_name;
    public $littler_category_name;




    public function __construct($config = [])
    {
		parent::__construct ( $config );
	}

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['violated_contract_id'], 'safe'],
            [['violated_content', 'approve_comment', 'alternative_solution'], 'string'],
            [['created_on', 'modified_on'], 'safe'],
            [['violated_contract_id', 'violated_principal', 'violated_category_id', 'violated_littler_category_id', 'approver', 'created_by', 'modified_by'], 'string', 'max' => 36],
            [['contract_code'], 'string', 'max' => 50]
        ];
    }
    
}